let nam: string = "我是一名好学生";//创建一个字符串类型
nam = 66;//字符串只能赋值字符串不能赋值数字类型
nam = "学生";
const sk: string = "aaa";//创建一个常量
sk = "aa";//常量不能重复赋值
let sk1: number[] = [1, 2, 3];//创建一个数组
let sk2: boolean = false;//创建一个布尔值
let id1: number = 66;//数字
let ag: any = "this is a string";
let ng: number = (a as string).length;
let bg: number = (<string>a).length;
let a1g: any = 4;
a1g = "string";
a1g = false;
const aaa: Object = { 'this is a Object': 56, 'this': 'a', 'is': 3 };